package cn.linshu.security.jwt.service;

import cn.linshu.security.jwt.entity.SysUser;
import org.springframework.security.core.userdetails.UserDetails;

/**
 * -*- coding: utf-8 -*-
 *
 * @Author linnin
 * @Name springboot3-labs-master
 * @Time 2025/2/3 23:47
 * @Note
 * @For
 * @Out Copyright© 2025 linnin
 */

public interface SystemService {
    /**
     * 使用用户名及密码登录
     * @param username
     * @param password
     * @return
     */
    String login(String username,String password);
    /**
     * 获取用户信息
     */
    UserDetails loadUserByUsername(String username);

    public SysUser getSysUserByUsername(String username);
}
